<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/2 0002
 * Time: 上午 11:38
 */
namespace DataAPI\Controller;

use Think\Controller;
use DataAPI\Model\WestPayModel;
use DataAPI\Model\WestpayApiModel;
use DataAPI\Extend\ExtendApi;
header('Content-Type:text/html; charset=utf-8');
class WestController extends Controller
{
    private $appId = '10002';
    private $appKey = 'Ukk4t40pR58ldy48vP694uOnBwsDotqJVP06V1dIma05xmj5ZT';
    public $westPay;
    protected $model;
    function __construct()
    {
        $this->model = M('supplier_products');
        $this->westPay = new WestPayModel();
    }
    public function index(){
        $m = new WestPayModel();
        $m->get_goods_list(1,10010);
        $m->getPrice();
    }
}